<style>
.headinfo {
    background: none;
}
.headinfo .mod-member {
    margin: 0 auto;
	margin-top: -60px;
    width: 94%;
	left:3%;
    padding: 6px 0 10px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.headinfo .mod-member .sign-btn{
    position: absolute;
    margin: 0 auto;
	top: -44px;
    width: 36px;
	height: 26px;
	right:16px;
    color:#fff;
	text-align:center;
	padding-top:3px;
    background: #4491F1;
}
.bottombg {bottom:-20px;width:100%;height:80px;border-bottom-right-radius:100% 40px;border-bottom-left-radius:100% 40px;}
.mod-group {
    margin: 0 auto;
	margin-top: 5px;
    width: 94%;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.fui-icon-group .fui-icon-col-sm {
    margin:10px 0;
}
.badge {
    left: 2rem;
    top: 0;
}
.fe-block-topinfo {
	margin:0.5rem;padding: 0.6rem 1rem;background-color: #fff;border-radius: 10px;border: 1px solid #f2f2f2;
}
.fui-block-group.new:after{content: " "; position: absolute; left: 0.5rem; right: 0.5rem; top: 50%; height: 1px; color: #D9D9D9; -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleY(0.5); -ms-transform: scaleY(0.5); transform: scaleY(0.5);}
.fui-block-group.new:before{content: " "; position: absolute; top: 0.5rem; bottom: 0.5rem; left: 50%; width: 1px; border-left: 1px solid #ebebeb; color: #D9D9D9; -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: scaleX(0.5); -ms-transform: scaleX(0.5); transform: scaleX(0.5);z-index: 2}
.fui-block-group .fui-block-child.new{display: -webkit-box;  display: -webkit-flex;  display: -ms-flexbox;  display: flex;  -webkit-box-align: center;-webkit-align-items: center;  -ms-flex-align: center;  align-items: center;-webkit-box-pack: start; -ms-flex-pack: start; -webkit-justify-content: flex-start; justify-content: flex-start;padding-left: .6rem; height: 3.7rem }
.fui-block-group .fui-block-child .text.new{height: auto;line-height: normal;margin-left: .6rem;font-size: .6rem;color: #999;text-align: left}
.fui-cell-group .fui-cell .fui-cell-icon .text-yellow{color: red}
.fui-block-group .fui-block-child .title{height: auto;line-height: normal;font-size: .7rem;color: #000;text-align: center}
.fui-block-group .fui-block-child .text.new .title{text-align: left}
.fui-block-group .fui-block-child .text span{color: #999}
.fui-block-group .fui-block-child .icon{padding-top: 0;line-height: 2.7rem}
.fui-block-group .fui-block-child .icon i{font-size: 1.3rem}
.fui-block-group .fui-block-child.new:before{display: none}
.fui-block-group .fui-block-child.new:after{display: none}
.fui-icon-group .fui-icon-col .icon i {
    color: #039646;
}
.fui-cell-group .fui-cell .fui-cell-icon i {
   color: #039646;
}
.showcode {padding:0.1rem;font-size:0.6rem;border-top-left-radius:1rem;border-bottom-left-radius:1rem;color:#fff;background-color:rgba(255,255,255,0.5);}
</style>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='main'">
	<div class='fui-content member-page' style="top:0">
	<div class="sysbgcolor" style="top:0;height:9rem;position: relative;">
		<div class="bottombg" style="padding:0.5rem;padding-bottom:0">
			<div class="fui-cellone" style="align-items:stretch">
				<div class="fui-cellone-label" style="width:auto;padding-right:0.5rem" ng-click="access_json('core/member.cavatar/')">
					<img style="width:3rem;height:3rem;border-radius:100%;" ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}" />
				</div>
				<div class="fui-cellone-text">
					<div class="bold" style="width:100%;color:#fff">{{pagedata.member.nickname}}</div>
					<div class="gray" style="font-size:0.7rem">
						<div style="width:100%;font-size:0.7rem;color:#f2f2f2">{{pagedata.member.mobile}} <span style="color:#f2f2f2" href="javascript:;" ng-click="access_json('core/member.set/')">设置</span>
						</div>
					</div>
					<div class="gray" style="font-size:0.6rem;color:#f2f2f2">
						<span ng-if="pagedata.user.id">成为分享员时间:{{pagedata.user.bind_time || '2019-12-18'}}</span>
						<span ng-if="!pagedata.user.id">还未成为分享员</span>
					</div>
				</div>
			</div>
		</div>
		<div class="fui-icon-group noborder col-3" style="margin-top:1rem">
							<div class="fui-icon-col-sm external" style="margin:0">
								<div href="javascript:;" ng-click="access_json('core/member.tixian/')">
									<div class="text bold" style="color:#fff">{{pagedata.member.credit2 || '0.00'}}</div>
									<div class="subtitle" style="font-size:12px;color: #fff;">余额 <span style="color:#f2f2f2">提现</span></div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class="text bold" style="color:#fff">{{pagedata.member.credit1 || '0'}}</div>
									<div class="subtitle" style="font-size:12px;color: #fff;">我的积分</div>
								</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class="text bold" style="color:#fff">{{pagedata.mycoupon || 0}}</div>
									<div class="subtitle" style="font-size:12px;color: #fff;">优惠券</div>
								</div>
							</div>
		</div>
	</div>
	<div style="padding:0.5rem;margin-top:-2rem">
		<div ng-if="pagedata.user.id" class="fui-cell-group fui-cell-click radius">
			<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_qqdian/sharer.order/')">
				<div class="fui-cell-text bold">分享订单</div>
				<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
			</a>
			<div class="fui-icon-group col-5 selecter">
				<a class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_qqdian/sharer.order//status=0')">
					<div class="badge" ng-if="pagedata.statics.status0>0">{{pagedata.statics.status0}}</div>
					<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
					<div class="text">待付款</div>
				</a>
				<a class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_videomerch/canyu/')">
					<div class="badge" ng-if="pagedata.statics.fx>0">{{pagedata.statics.fx}}</div>
					<div class="icon icon-orange radius"><i class="icon icon-fenxiang2"></i></div>
					<div class="text">待分享</div>
				</a>
				<a class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_qqdian/sharer.order//status=1')">
					<div class="badge" ng-if="pagedata.statics.status1>0">{{pagedata.statics.status1}}</div>
					<div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
					<div class="text">待核销</div>
				</a>
				<a class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_qqdian/sharer.order//status=3')">
					<div class="badge" ng-if="pagedata.statics.status3>0">{{pagedata.statics.status3}}</div>
					<div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
					<div class="text">已完成</div>
				</a>
				<a class="fui-icon-col external" href="javascript:;" ng-click="access_json('jy_qqdian/sharer.order//status=3')">
					<div class="badge" ng-if="pagedata.statics.status4>0">{{pagedata.statics.status4}}</div>
					<div class="icon icon-pink radius"><i class="icon icon-tuihuanhuo1"></i></div>
					<div class="text">退换货</div>
				</a>
			</div>
		</div>
		<div class="fui-cell-group radius">
			<div class="fui-cell-title">{{pagedata.user.id?'你已成为':'你还未成为'}}【小店分享员】</div>
			<div class="fui-cell-title gray" style="font-size:0.6rem">
				成为小店分享员后：<span ng-repeat="title in pagedata.share_scene" class="syscolor">{{title}}，</span>等场景下都能带来分享收益！
			</div>
		</div>
		<div ng-if="!pagedata.user.id" class="weui_btn_area">
			 <a class="weui_btn weui_btn_primary" style="border-radius:1rem;" href="javascript:;" ng-click="pagedata.showewm=true;pagedata.getewm()">申请成为小店分享员</a>
		</div>
		<div ng-include="sys_html('common/_copyright',true)"></div>
		</div>
	</div>
</div>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='set'">
	<div class="fui-header">
			<div class="fui-header-left" onclick="window.history.go(-1);">
				<a class="back"></a>
			</div>
			<div class="title">个人设置</div>
			<div class="fui-header-right"></div>
	</div>
	<div class="fui-list-group merchgroup" style="margin-top:58px">
					<div class="fui-list jump">
						<a class="fui-list-media" ng-if="pagedata.item.avatar" ng-click="image(pagedata.item,'avatar')">
							<img class="round" src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/nopic.jpg'}}" />
						</a>
						<a class="fui-list-media weui_uploader_input_wrp" >
							<input class="weui_uploader_input" ng-click="image(pagedata.item,'avatar')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
						</a>
					</div>
	</div>
	<div class="weui_cells weui_cells_form">
				  <div class="weui_cell weui_vcode">
					<div class="weui_cell_hd"><label class="weui_label">昵称</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" type="text" ng-model="pagedata.item.nickname" placeholder="请输入您的昵称">
					</div>
				</div>
				<div class="weui_cell weui_vcode">
					<div class="weui_cell_hd"><label class="weui_label">手机</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" type="text" ng-model="pagedata.item.mobile" placeholder="请输入您的手机号码">
					</div>
				</div>
	</div>
	<div class="weui_btn_area">
			 <a class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips" ng-click="post(pagedata.item,'set')">提交</a>
	</div>
</div>
<div ng-if="pagedata.showewm" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:{{main.syscolor || '#7c1cc9'}};">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showewm=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 1rem;padding-top:0.5rem;background:{{main.syscolor || '#7c1cc9'}}">
				<div class='fui-cell-title c' style="color:#fff">您正在进行“绑定分享员”操作
				</div>
				<div class='fui-cell' style="padding-bottom:0">
					<div class="fui-cell-text c">
						<div class="img_box">
						<img ng-scr="{{tomedia(pagedata.sharerewm)}}">
						</div>
					</div>
				</div>
				<div class='fui-cell' style="margin-top:0;padding-top:0">
					<div class="fui-cell-text">
					<div class="error c">
						<p style="padding: 0 1.3rem;color:#fff">温馨提示：微信端长按识别二维码，完成“绑定分享员”操作！</p>
					</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.getewm=function(){
	scope.get('/sharer.index/getewm/',function(res){
		scope.pagedata.sharerewm=res.sharerewm;
		scope.$evalAsync();
	});
}
</script>